import request from '../utils/request.js'

export const userLogin = (user)=>{
	return request.post('/login',user)
}

//更新用户信息
export const userUpdate = (userInfo,updateObj)=>{
	let {objectId,sessionToken} = userInfo
	return request.put(`/users/${objectId}`,updateObj,{
		header:{
			"X-LC-Session":sessionToken
		}
	})
}